package com.itheima.homework.assignment.Test04;

/**
 * 定义员工类Employee,
 * 定义两个私有属性id,name,提供对应的构造,get/set方法,
 * 并提供抽象方法work
 */
public abstract class Employee {
    private int id;
    private String name;

    public Employee() {
    }

    public Employee(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract void work();
}
